package com.coderg.gmall.user.controller;

import com.coderg.gmall.model.user.UserAddress;
import com.coderg.gmall.user.service.UserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/user")
public class UserController {

    @Autowired
    private UserAddressService userAddressService;

    /**
     * 获取用户地址
     *
     * @param
     * @return
     */
    @GetMapping("/findUserAddressListByUserId")
    public List<UserAddress> findUserAddressListByUserId() {
        return userAddressService.findUserAddressListByUserId();
    }

    @GetMapping("/aaa")
    public void  aaa() {
        System.out.println("dsdsf");
    }

}
